*{
    margin: 0;
    padding: 0;
}
body{
    background: #f2f2f2;
}
.headers{
    height: 4.75rem !important;
}
.header{
    height: 2.25rem;
    overflow: hidden;
    transition: all .3s;
    .top{
        height: 2.25rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
        background: #fff;
        border-bottom: 1px solid #d8d8d8;
        p{
            &:nth-of-type(1){
                width: 2rem;
                height: 2.2rem;
                background: url('../img/back-5.png') no-repeat center;
                background-size: auto .75rem;
            }
            &:nth-of-type(2){
                font-size: .85rem;
                color: #333;
            }
            &:nth-of-type(3){
                width: 2rem;
                height: 2.2rem;
                background: url('../img/menu-5.png') no-repeat center;
                background-size:1.1rem;
                transition: all .3s;
            }
        }
        .on{
            background: url('../img/cha-5.png') no-repeat 50% !important;
            background-size: 35% 35% !important;
        }
    }
    ul{
        height: 2.5rem;
        display: flex;
        justify-content: space-between;
        list-style: none;
        font-size: .6rem;
        align-items: center;
        text-align: center;
        color: #4d525d;
        padding: .25rem 0;
        background: #eee;
        border-bottom: 1px solid #d8d8d8;
        box-sizing: border-box;
        li{
            width: 3.75rem;
            a{
                text-decoration:none;
                color: #4d525d;
            }
        }
        .icon-shouye{
            font-size: 1.2rem !important;
            font-weight: 400;
        }
        .icon-fenlei{
            font-size: 1.2rem !important;
            font-weight: 600;
        }
        .icon-dai{
            font-size: 1.2rem !important;
        }
        .icon-che{
            font-size: 1.2rem !important;
        }
        .icon-wode{
            font-size: 1.2rem !important;
        }
    }
}
.bg{
    padding-bottom: 3.75rem;
    .bg-pic{
        display: block;
        width: 9rem;
        margin: 2rem auto 1rem;
    }
    .main{
        p{
            font-size: .7rem;
            color: #777777;
            text-align: center;
            height: 1.75rem;
            line-height: 1.75rem;
        }
        div{
            display: flex;
            justify-content: center;
            align-items: center;
            p{
                font-size: .85rem;
                width: 6.25rem;
                height: 2rem;
                line-height: 2rem;
                margin: 0 .5rem;
                border: .05rem solid #777777;
                border-radius: .3rem;
            }
        }
    }
    .bg-top{
        display: flex;
        align-items: center;
        padding: 0 .5rem;
        height: 2rem;
        background: #fff;
        .all1{
            width: 1.2rem;
            height: 1.2rem;
            margin-right: .5rem;
            appearance: none; /* 标准属性 */
            -moz-appearance: none; /* Firefox 兼容 */
            -ms-appearance: none; /* IE 兼容 */
            -o-appearance: none; /* Opera 兼容 */
            -webkit-appearance: none; /* WebKit 兼容 */
            border: 1px solid #C0C4CC;
            border-radius: 50%;
            outline: none;
            &:checked{
                background:url("http://cart.m.dangdang.com/images/c_checkbox_on.png") no-repeat;
                background-size: 100%;
            }
        }
        img{
            width: 1rem;
            height: 1rem;
            margin-right: .5rem;
        }
        p{
            font-size: .8rem;
            color: #787878;
        }
    }
    .box{
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: .5rem;
        border: .05rem solid #fafafa;
        background-color: #fff;
        .option{
            width: 1.2rem;
            height: 1.2rem;
            margin-right: .5rem;
            appearance: none; /* 标准属性 */
            -moz-appearance: none; /* Firefox 兼容 */
            -ms-appearance: none; /* IE 兼容 */
            -o-appearance: none; /* Opera 兼容 */
            -webkit-appearance: none; /* WebKit 兼容 */
            border: 1px solid #C0C4CC;
            border-radius: 50%;
            outline: none;
            &:checked{
                background:url("http://cart.m.dangdang.com/images/c_checkbox_on.png") no-repeat;
                background-size: 100%;
            }
        }
        img{
            width: 5.25rem;
            height: 6.25rem;
        }
        .intro{
            width: 10rem;
            .name{
                font-size: .7rem;
                color: #323232;
                height: 2rem;
                line-height: 1rem;
                overflow:hidden;
                display:-webkit-box;
                -webkit-line-clamp:2;
                -webkit-box-orient:vertical;
                line-clamp: 2;/*行数*/
            }
            .tar{
                font-size: .75rem;
                color: #ff2832;
            }
            .number{
                button{
                    width: 2.2rem;
                    height: 2.1rem;
                    background-color: #fff;
                    color: #787878;
                    border: 1px solid #d5d5d5;
                    text-align: center;
                }
                input{
                    width: 4.25rem;
                    height: 2.1rem;
                    border: 1px solid #d5d5d5;
                    text-align: center;
                }
                p{
                    width: 2.25rem;
                    text-align: center;
                    font-size: .7rem;
                    color: #fff;
                    background-color: #ff4650;
                    margin-left: auto;
                    margin-top: .25rem;
                }
            }
        }
    }
}
.end{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 2.75rem;
    background: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: .5rem;
    .end-left{
        font-size: .8rem;
        color: #787878;
        display: flex;
        align-items: center;
        .all2{
            width: 1.2rem;
            height: 1.2rem;
            margin-right: .5rem;
            appearance: none; /* 标准属性 */
            -moz-appearance: none; /* Firefox 兼容 */
            -ms-appearance: none; /* IE 兼容 */
            -o-appearance: none; /* Opera 兼容 */
            -webkit-appearance: none; /* WebKit 兼容 */
            border: 1px solid #C0C4CC;
            border-radius: 50%;
            outline: none;
            &:checked{
                background:url("http://cart.m.dangdang.com/images/c_checkbox_on.png") no-repeat;
                background-size: 100%;
            }
        }
    }
    .end-right{
        display: flex;
        align-items: center;
        p{
            font-size: .8rem;
            color: #464646;
            span{
                color: #ff2832;
            }
            &:nth-of-type(2){
                margin-left: .5rem;
                width: 5rem;
                height: 2rem;
                line-height: 2rem;
                color: #fff;
                background-color: #ff4650;
                text-align: center;
            }
        }
    }
}